﻿using ET;
using UnityEngine;
namespace Core
{
    public static class AsyncOperationHelper
    {
        public static async ETTask GetAwaiter(this AsyncOperation asyncOperation)
        {
            ETTask task = ETTask.Create(true);
            asyncOperation.completed += _ => { task.SetResult(); };
            await task;
        }
    }

}